<?php

/**
 * 模型基类
 *
 * 建立基础模型、配置数据库连接
 *
 * @author Lan <lanyg.com@gmail.com>
 * @link http://www.lanyg.com/projects/lanp
 * @copyright Copyright &copy; 2011-2012 Yanguang Lan (www.lanyg.com)
 * @license LGPL (http://www.gnu.org/licenses/lgpl.html)
 * @version $Id$
 */

/**
 * MVC_Model
 *
 * @package lanp
 * @author Lan
 */

class MVC_Model
{
    /**
     * 数据库链接实例变量
     *
     * @var object $db
     * @access public
     */

    public $db = null;

    /**
     * 构造函数
     *
     * @access public
     */

    public function  __construct($pool_name = null)
    {
        $this->db = MVC::instance()->controller->load->database($pool_name);
    }
}
?>